﻿<Window x:Class="XmlStudio.Dialogs.EditTextNodeDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:userControls="clr-namespace:XmlStudio.Resources.UserControls" 
        xmlns:loc="clr-namespace:Tomers.WPF.Localization;assembly=Tomers.WPF.Localization" 
        loc:Translate.Uid="EditTextNodeDialog.WindowTitle"
        Title="{loc:Translate EditTextNodeDialog}"
        MinHeight="200" 
        MinWidth="300"
        WindowStartupLocation="CenterOwner"
        ResizeMode="CanResizeWithGrip"
        x:Name="EditTextNodeWindow"
        Style="{StaticResource XmlStudioDialogStyle}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
        <Border BorderBrush="Gray" BorderThickness="1" Margin="{StaticResource DialogBoxMargin}" Background="{StaticResource DialogBackgoundBrush}">
            <Grid Margin="{StaticResource DialogBoxMargin}" >

                <Grid.RowDefinitions>
                    <RowDefinition Height="100*" />
                    <RowDefinition Height="30*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <TextBox MinHeight="100" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"
                         HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="textTextBox" Text="{Binding Text, UpdateSourceTrigger=Explicit}" />

                <userControls:OKCancelButtons OKClicked="OKClicked" Margin="0 7 0 0" Grid.Row="1" />
            </Grid>
        </Border>
    </ScrollViewer>
</Window>